/*
 * @LastEditors: 七七
 * @Date: 2023-01-08 11:15:26
 */
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import store from './redux/store.js'
import { Provider } from 'react-redux'

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);

// 检测redux中状态的改变，若redux的状态发生了改变，那么重新渲染APP组件
// store.subscribe(() => {
//   ReactDOM.render(<App />, document.getElementById('root'));
// })